package com.zyz.controller;

import com.zyz.base.response.Message;
import com.zyz.common.controller.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/activity")
@Slf4j
@CrossOrigin
public class ActivityController extends BaseController {

    @RequestMapping(value = "/test", method = RequestMethod.POST)
    public Message<String> test(String param) {
        System.out.println("params:" + param);
        return new Message<>("activity success");
    }
}
